在Kubernets的 Quality of Service for Pods裡, 根據cpu, memory的request與limit, 可以區分為Guaranteed, Burstable, BestEffort三種類型,但在Nomad v1.1 之前cpu,memory設定只有require一種,很高興看到在v1.1 Bate, 新增了兩個參數,分別是cores
與memory_max
, 這讓Nomad在做scheduler時增加資源的利用率。
cpu:
The CPU required to run this task in MHz.cores:
The number of CPU cores to reserve for the task.memory:
The memory required in MB.memory_max:
The maximum memory the task may use, if the client has excess memory capacity.